package com.we823.project.repository.service.repo;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.we823.project.model.repo.ProcessModel;
import com.we823.project.repository.dao.repo.ProcessRepository;
import com.we823.project.repository.service.AbstractBaseService;

@Service
@Scope("prototype")
public class ProcessService extends AbstractBaseService<ProcessModel> {

	private ProcessRepository processRepository;
	
	@Autowired
	public ProcessService(ProcessRepository processRepository) {
		super(processRepository);
		this.processRepository=processRepository;
	}

	public List<ProcessModel> findByCode(String code){
		return processRepository.findByCode(code);
	}
}
